<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="socnet.controller.*" %>
<%@ page import="socnet.model.*" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="java.util.Calendar" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<link href="./login.css" rel="stylesheet" type="text/css" />


<body>

<div class="container">
  <div class="header">
  <a href="http://localhost:8040/NKA-soc-net/myPage.jsp"><img src="images/profile.jpg" alt="Insert Logo Here" align="left" name="insert_logo" width="100" height="100" id="Insert_logo2" style="background-color: #8090AB; " /></a>
  <img src="images/GEEK_small.jpg" alt="Insert Logo Here" name="insert_logo" width="100" align="right" height="100" id="Insert_logo" style="background-color: #8090AB; display:block; "/><!-- end .header --></div>
  <br />
  <form id="form1" name="form1" method="post" action="" >
    <input type="text" name="search" id="search" />
    <input type="submit" name="searchB" id="searchB" value="Search" />
  </form>
  <br />
  <br />
    
  <div id="menu">
		<ul>
			<li><a href="groups.jsp" class="link">Groups</a></li>
			<li><a href="messages.jsp" class="link">Messages</a></li>
			<li><a href="myContacts.jsp" class="link">Contacts</a></li>
            <li><a href="myPictures.jsp" class="link">Pictures</a></li>
		</ul>
  </div>
  <fieldset>
  
  <%
  String szoveg = "";
  if(request.getParameter("elkuld")!=null ) {
	  if(request.getParameter("valasz")!=null || request.getParameter("valasz")!="") {
		  szoveg=request.getParameter("valasz");
	  }
  }
  String szoveg2 = "";
  if(request.getParameter("elkuld2")!=null) {
	  if(request.getParameter("valasz2")!=null || request.getParameter("valasz2")!="") {
		  szoveg2=request.getParameter("valasz2");
	  }
  }
	  
	  String bejegyzes = "";
	  if(request.getParameter("bejegyzesButton")!=null) {
		  if(request.getParameter("bejegyzes")!=null || request.getParameter("bejegyzes")=="") {
			  bejegyzes=request.getParameter("bejegyzes");
		  }
		  String datum = new SimpleDateFormat("yyyy.MM.dd").format(Calendar.getInstance().getTime());
	  
	  
	  %> 
	  <label> Bata András </label> <label style="float:right"> <%=datum%> </label> <br /><br />
	    <label> <div> <%=bejegyzes %> </div></label><br />
	<br />
    <form method="post" action="groups.jsp" id="2" name="2">	
    	<textarea name="valasz3" cols="50" rows="5">Válasz írása</textarea> <br />
    	<input name="elkuld3" type="submit" value="Send" />
    </form>
	  <%} %>
  
  	<label> Bata András </label> <label style="float:right"> 2012.04.20 </label> <br /><br />
    <label> <div>Első bejegyzésem olyankor aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    aaaaaaaaaaaaaaaaaaaa
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</div></label><br />
    <label style="margin-left:20px; border-width:1px; border-color:#3F6; border-style:solid;"> Elso hozzaszolas</label> <br />
    <label style="margin-left:20px; border-width:1px; border-color:#3F6; border-style:solid;"> Masodik hozzaszolas</label> <br />
<%	if(szoveg != "" || szoveg != null) {
		%>
				<label style="margin-left:20px; border-width:1px; border-color:#3F6; border-style:solid;"><%=szoveg %></label> <br /><% } %>
	<br />
    <form method="post" action="groups.jsp" id="1" name="1">	
    	<textarea name="valasz" cols="50" rows="5">New comment</textarea> <br />
    	<input name="elkuld" type="submit" value="Send" />
    </form>
    <br />
   <br /> <br />
   <label> Kovács Dániel </label> <label style="float:right"> 2012.04.21 </label> <br /><br />
    <label> <div>Második bejegyzés olyankor aaabbbbbbbbbbbbbaaaaaaaaaaaaaaaa
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    aaaaaaaaaaaaaaaaaaaa
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa </div></label><br />
    <label style="margin-left:20px; border-width:1px; border-color:#3F6; border-style:solid;"> Elso hozzaszolas</label> <br />
    <label style="margin-left:20px; border-width:1px; border-color:#3F6; border-style:solid;"> Masodik hozzaszolas</label> <br />

<%	if(szoveg2 != "" || szoveg2 != null) {
		%>
		<label style="margin-left:20px; border-width:1px; border-color:#3F6; border-style:solid;"><%=szoveg2 %></label> <br />
<% } %>
	<br />
    <form method="post" action="groups.jsp" id="2" name="2">	
    	<textarea name="valasz2" cols="50" rows="5">New comment</textarea> <br />
    	<input name="elkuld2" type="submit" value="Send" />
    </form>
    <br />
	<br />
    <br />
    
    <form method="post" action="groups.jsp" id="2" name="2">	
    	<textarea name="bejegyzes" cols="50" rows="5">New post</textarea> <br />
    	<input name="bejegyzesButton" type="submit" value="New post" />
    </form>
  </fieldset>

  <!-- end .sidebar1 --></div>
  <div class="content"></div>

  <!-- end .container --></div>
</body>
</html>